Fix bug when variant and safetensor file does not match#11587
Fix bug when variant and safetensor file does not match#11587DN6 merged 15 commits intohuggingface:mainfrom
variant and safetensor file does not match#11587Conversation
|
This PR fixes bug under |
|
@a-r-r-o-w @DN6 , pls help review, thx. |
|
@bot /style |
|
Style fixes have been applied. View the workflow run here. |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
Thanks @kaixuanliu! I think we would need to add the variant check when there are no component folders as well. if not components:
return any(".safetensors" in filename for filename in filenames)And I think the changes will break the current |
|
@DN6 , Hi, thanks for your advice. Have updated the code and test cases |
Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
|
@bot /style |
1 similar comment
|
@bot /style |
|
Style fixes have been applied. View the workflow run here. |
Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
|
@DN6 Hi, I have checked all the CI tests offline. Can you help trigger the CI workflow again? |
No description provided.